package com.exception;

import com.component.ErrorCode;

/**
 * @ClassName ExceptionCast
 * @Description 封装异常方法
 * @Author XiangQian
 * @Date 2022/7/7 17:18
 */
public class ExceptionCast {
    public static void cast(ErrorCode errorCode) {
        throw new UserException(errorCode);
    }
}
